package com.ybybh.gamecenter.mapper;


import com.ybybh.gamecenter.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NewsMapper {

    @Select("select * from news order by createtime desc")
    public List<News> selectAll();

    @Select("select * from news where isavailable='1' order by createtime desc limit 0,12")
    public List<News> selectNewIndex();
}
